package com.yanqu.road.server.manager.tomb.entity;

import com.yanqu.road.dao.dbV2.BaseEntity;
import com.yanqu.road.dao.dbV2.IField;
import com.yanqu.road.dao.dbV2.ITable;
import com.yanqu.road.dao.dbV2.serializer.DInt;
import com.yanqu.road.dao.dbV2.serializer.DLong;
import com.yanqu.road.dao.dbV2.serializer.DObject;

import java.util.ArrayList;
import java.util.List;

@ITable(tableName = "t_c_activity_tomb_server_data")
public class DbTombServerData extends BaseEntity {

    public static DbTombServerData newInstance() {
        DbTombServerData dbTombServerData = new DbTombServerData();
        return dbTombServerData;
    }

    @IField(isPrimaryKey = true, fieldName = "activity_id", serializer = DInt.class)
    public int activityId;

    @IField(isPrimaryKey = true, fieldName = "groupId", serializer = DInt.class)
    public int groupId;

    @IField(isPrimaryKey = true, fieldName = "server_id", serializer = DLong.class)
    public long serverId;

    @IField(fieldName = "data", serializer = DObject.class)
    public List<UserAbilityInfo> data = new ArrayList<>();

    @IField(fieldName = "activityUserNum", comment = "近期的活跃用户数量", serializer = DInt.class)
    public int activityUserNum = -1;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public List<UserAbilityInfo> getData() {
        return data;
    }

    public void setData(List<UserAbilityInfo> data) {
        this.data = data;
    }

    public int getActivityUserNum() {
        return activityUserNum;
    }

    public void setActivityUserNum(int activityUserNum) {
        this.activityUserNum = activityUserNum;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
}
